<%-- 
    Document   : Usuario
    Created on : 25/08/2011, 13:09:08
    Author     : aluno
--%>

<%@page import="entidades.Usuario"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <%Usuario user = (Usuario) request.getSession().getAttribute("usuario");


        if (user == null) {
            response.sendRedirect("login.jsp");
        } else if (user.isContaConfirmada()) {
            String foto = user.getCaminhoFoto();
    %>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Usuario Comun</title>
        <link rel="stylesheet" href="css/login.css" type="text/css" title="default" />
        <script src="js/jquery/jquery-1.4.1.min.js" type="text/javascript"></script>

        <!--  checkbox styling script -->
        <script src="js/jquery/ui.core.js" type="text/javascript"></script>
        <script src="js/jquery/ui.checkbox.js" type="text/javascript"></script>
        <script src="js/jquery/jquery.bind.js" type="text/javascript"></script>
        <script type="text/javascript">
            $(function(){
                $('input').checkBox();
                $('#toggle-all').click(function(){
                    $('#toggle-all').toggleClass('toggle-checked');
                    $('#mainform input[type=checkbox]').checkBox('toggle');
                    return false;
                });
            });
        </script> 
    </head>
    <body>
        div id="page-top-outer">   
        <div id="page-top">
            <div id="logo">

            </div>

        </div>
    </div>
    <div class="clear">&nbsp;</div>

    <!--  start nav-outer-repeat................................................................................................. START -->
    <div class="nav-outer-repeat"> 
        <!--  start nav-outer -->
        <div class="nav-outer"> 

            <!-- start nav-right -->
            <div id="nav-right">

                <div class="nav-divider">&nbsp;</div>
                <div class="showhide-account"><img src="images/shared/nav/nav_myaccount.gif" width="93" height="14" alt="" /></div>
                <div class="nav-divider">&nbsp;</div>
                <a href="Servlet_login?op=1" id="logout"><img src="images/shared/nav/nav_logout.gif" width="64" height="14" alt="" /></a>
                <div class="clear">&nbsp;</div>

                <!--  start account-content -->	
                <div class="account-content">
                    <div class="account-drop-inner">
                        <a href="" id="acc-settings">Settings</a>
                        <div class="clear">&nbsp;</div>
                        <div class="acc-line">&nbsp;</div>
                        <a href="" id="acc-details">Personal details </a>
                        <div class="clear">&nbsp;</div>
                        <div class="acc-line">&nbsp;</div>
                        <a href="" id="acc-project">Project details</a>
                        <div class="clear">&nbsp;</div>
                        <div class="acc-line">&nbsp;</div>
                        <a href="" id="acc-inbox">Inbox</a>
                        <div class="clear">&nbsp;</div>
                        <div class="acc-line">&nbsp;</div>
                        <a href="" id="acc-stats">Statistics</a> 
                    </div>
                </div>
                <!--  end account-content -->

            </div>
            <!-- end nav-right -->


            <!--  start nav -->
            <div class="nav">
                <div class="table">

                    <ul class="select"><li><a href="UsuarioSuper.jsp"><b>Pagina Principal</b><!--[if IE 7]><!--></a><!--<![endif]-->
                            <!--[if lte IE 6]><table><tr><td><![endif]-->

                            <!--[if lte IE 6]></td></tr></table></a><![endif]-->
                        </li>
                    </ul>

                    <div class="nav-divider">&nbsp;</div>

                    <ul class="select"><li><a href="#nogo"><b>Visualizar</b><!--[if IE 7]><!--></a><!--<![endif]-->
                            <!--[if lte IE 6]><table><tr><td><![endif]-->
                            <div class="select_sub show">
                                <ul class="sub">
                                    <li><a href="cadastrarArtista.jsp">Artista</a></li>
                                    <li><a href="cadastrarMusica.jsp">Música</a></li>
                                    <li><a href="cadastrarProdutora.jsp">Produtora</a></li>
                                </ul>
                            </div>
                            <!--[if lte IE 6]></td></tr></table></a><![endif]-->
                        </li>
                    </ul>

                    <div class="nav-divider">&nbsp;</div>

                    <ul class="select"><li><a href="#nogo"><b>Gerenciar</b><!--[if IE 7]><!--></a><!--<![endif]-->
                            <!--[if lte IE 6]><table><tr><td><![endif]-->
                            <div class="select_sub">
                                <ul class="sub">
                                    <li><a href="gerenciarAlbum.jsp">Album</a></li>
                                    <li><a href="gerenciarArtista.jsp">Artista</a></li>
                                    <li><a href="gerenciarCategoria.jsp">Categoria</a></li>
                                    <li><a href="gerenciarGenero.jsp">Gênero</a></li>
                                    <li><a href="gerenciarMusicas.jsp">Música</a></li>
                                    <li><a href="gerenciarNovidade.jsp">Novidades</a></li>
                                </ul>
                            </div>
                            <!--[if lte IE 6]></td></tr></table></a><![endif]-->
                        </li>
                    </ul>

                    <div class="nav-divider">&nbsp;</div>





                    <div class="clear"></div>
                </div>
                <div class="clear"></div>
            </div>
            <!--  start nav -->

        </div>
        <div class="clear"></div>
        <!--  start nav-outer -->
    </div>
    <!--  start nav-outer-repeat................................................... END -->

    <div class="clear"></div>
    <!-- start content-outer -->
    <div id="content-outer">
        <!-- start content -->
        <div id="content">

        </div>
    </div>
    <h1>
        <br clear="top">   
        <img src="files/<%=foto%>" width="120" height="120"/>
        </br>

        <a href="updateUsuario.jsp">Editar Dados</a>
        <h1>Você é um usuário Comum!</h1>
    </h1>
</body>
<%} else {
%>
 <h1>Você não confirmou sua conta</h1>
<%        }
    
%>
</html>
